package linearList.text;

import linearList.SequenceList;
//顺序表测试
public class SequenceListDemo {
    public static void main(String[] args) {
        SequenceList<Integer> list = new SequenceList<>(6);
        list.insert(1);
        list.insert(4);
        list.insert(2);
        list.insert(7);
        list.insert(1,6);
        for (Integer integer : list) {
            System.out.print(integer);
        }
        System.out.println(list.length());
        System.out.println("----------------------");
        list.remove(1);
        for (Integer integer : list) {
            System.out.print(integer);
        }
        System.out.println("长度"+list.length());


        list.insert(12);
        list.insert(43);
        list.insert(244);
        list.insert(142);
        list.insert(455);
        list.insert(211);
    }


}
